<%@page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@taglib uri="TowkerTagLib" prefix="rbac"%>
<%@include file="/commons/include/html_doctype.html" %>
<html>
<head>
	<title>盘盈盘亏表</title>
	<%@include file="/commons/include/get.jsp" %>
	<script type="text/javascript">
		//放置脚本
	</script>
</head> 
<body>
<table border="0" cellspacing="0" cellpadding="0" class="listLogo">
	<tr>
		<td class="title">盘盈盘亏表</td>
	</tr>
</table>
<div class="line"></div>
<form id="queryForm" method="post" action="getLossMaterial.htm">
<table border="0" cellspacing="0" cellpadding="0" class="queryTable">
	<tr>
		<td class="title">部门代码：</td>
		<td class="input">
		<select id="dep_code" name="dep_code">
				<option value="" >请选择</option>
				 <c:forEach items="${departList}" var="d" varStatus="status">
					<option value="${d.dep_code}">${d.dep_code}</option>
				</c:forEach>
		</select>
		</td>
		<td class="query" colspan="2"><input id="_querySubmit_" type="submit" class="button" value="查询" /></td>
	</tr>
</table>
</form>
<div class="line"></div>
<table border="0" cellspacing="1" cellpadding="0" class="listTable">
	<tr class="list_title">
		<td>仓库代码</td>
		<td>物料代码</td>
		<td>实际结存数量</td>
		<td>账面结存数量</td>
		<td>盘盈盘亏数量</td>
	</tr>
<c:forEach items="${pageModel.result}" var="d" varStatus="status">
	<tr class="${status.index%2==0?'list_even':'list_odd'}">
		<td>${fn:escapeXml(d.dep_code)}</td>
		<td>${fn:escapeXml(d.goods_sn)}</td>
		<td>${fn:escapeXml(d.amount)}</td>
		<td>${fn:escapeXml(d.stock_num)}</td>
		<td>${d.stock_num-d.amount }</td>
	</tr>
</c:forEach>
</table>
<input id="_submit_" type="submit" style="display:none;" />
<table border="0" cellspacing="0" cellpadding="0" class="bottomTable">
	<tr><td>${pageNav.page}</td></tr>
</table>
</body>
</html>
